<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>
<script>
export default {
  name: "App",
  created() {
    // 确保权限状态初始化
    this.$store.dispatch("permissions/initState");
    console.log(
      "App.vue created: isAdmin:",
      this.$store.getters["permissions/isAdmin"]
    );
  },
};
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
body {
  background-color: #262626;
}
</style>
